/*
表格字段
 */


import {reactive} from "vue";
import moment from "moment/moment";
export const TableColumns = [
    {
        title: 'ID' ,
        dataIndex: 'id',
        key: 'id',
    },
    {
        title: '学期',
        key: 'semesterName',
        dataIndex: 'semesterName',
    },
    {
        title: '学生',
        dataIndex: 'studentName',
        key: 'studentName',
    },
    {
        title:'实验室',
        key:'labNumber',
        dataIndex:'labNumber',
    },
    {
        title:'周次',
        key:'week',
        dataIndex:'week',
    },
    {
        title:'周（几）',
        key:'weekdayName',
        dataIndex:'weekdayName',
    },

    {
        title: '节次',
        key: 'sectionName',
        dataIndex:'sectionName',
    },
    {
        title: '申请日期',
        key: 'applicationDate',
        dataIndex:'applicationDate',
    },
    {
        title: '申请原因',
        key: 'reason',
        dataIndex:'reason',
    },
    {
        title: '申请状态',
        key: 'status',
        dataIndex:'status',
    },
    {
        title: '操作',
        key: 'action',
        slots: { customRender: 'action' } // 使用自定义插槽渲染操作列
    },

];
//搜索栏
export const RepairSearchColumns = [
    {
        label: '教师姓名' ,
        name: 'teacherName',
        rules: [{ required: false }],
        inputType: 'input',
        placeHolder: "请输入教师姓名",

    },
    {
        label: '实验室号',
        name: 'labNumber',
        rules: [{ required: false }],
        inputType: 'input',
        placeHolder: '请选择实验室号'
    },
    {
        label: '申请状态',
        name: 'status',
        rules: [{ required: false}],
        inputType: 'input',
        placeHolder: "请输入申请状态"
    },

];


